package com.hoshiicloud.user.service.impl.organization;

import com.hoshiicloud.common.exception.CommonError;
import com.hoshiicloud.common.exception.ServiceException;
import com.hoshiicloud.common.rpc.Response;
import org.springframework.stereotype.Component;

/**
 * @Author:campchen
 * @Date:Created in 下午 03:41 2019/5/24
 * @PACKAGENAME com.hoshiicloud.organization.service.impl
 * @Description
 */
@Component
public class CommonService {
    public void approval(Integer status) {
        if (status != 0 && status != 1 && status != 2) {
            throw new ServiceException(CommonError.error("审核状态错误"));
        }
    }


}
